import express from "express";
const app = express()
app.use(express.static("dist"))
const template = `
<html>
  <head>
    <title>React Fiber</title>
  </head>
  <body>
     <div id="root">111333</div>
     <script src="bundle.js"></script>
  </body>
</html>
` 
app.use("*",(req,res)=>{
    res.send(template)
})

app.listen(4000,()=>console.log("server is running"))
